using System.Windows.Forms;

namespace UpdateAuto
{
	public partial class TaskPanelItem : UserControl
	{
		public TaskPanelOperation op;

		public TaskPanelItem()
		{
			InitializeComponent();
		}

		public TaskPanelItem(TaskPanelOperation op)
			: this()
		{
			this.op = op;
			this.lblTitle.Text = op.Text;
			this.Name = "pnl" + op.Guid.Replace("-","");
			this.lblStatus.Text = "";
			this.progressBar1.Style = op.ProgressStyle;
			this.progressBar1.Visible = false;
		}
	}
}
